﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using CarolLib.Configuration;

namespace MM.Configuration
{
    public class LogParaSetting
    {
      

        public LogParaSetting(XmlNode node)
        {
            XmlAttributeCollection atts = node.Attributes;
            this.LogPaths = ConfigurationBase.GetStringAttribute(atts, "logpaths", string.Empty).Split('|');
            this.ParseErrorType = ConfigurationBase.GetStringAttribute(atts, "errortype", string.Empty).Split('|');
            this.EnableMail = ConfigurationBase.GetBoolAttribute(atts, "enablemail", false);
            this.EnableSMS = ConfigurationBase.GetBoolAttribute(atts,"enablesms",false);
        }

        public string[] LogPaths { get; set; }

        public string[] ParseErrorType { get; set; }

        public bool EnableMail { get; set; }

        public bool EnableSMS { get; set; }

    }
}
